package com.shishuo.cms.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.shishuo.cms.entity.UserRoleEntity;

@Repository
public interface UserRoleDao  extends IBaseDAO<UserRoleEntity, Long>{

	int updateRoleStatus(int id, int status);

	List<UserRoleEntity> getRoles(int status);

	UserRoleEntity getByRoleName(@Param("roleName") String roleName);

}
